package com.maimao.goods.client;

import com.maimao.core.constant.ServiceContainer;
import com.maimao.core.interceptor.FeignInterceptor;
import com.maimao.core.model.resp.Result;
import com.maimao.goods.client.factory.OrderFallBackFactory;
import com.maimao.goods.client.factory.UserFallBackFactory;
import com.maimao.model.order.input.CommentStatusUpdateInput;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author MaoLin Wang
 * @date 2020/12/22 7:54 下午
 */
@RequestMapping("/order")
@FeignClient(contextId = "orderClient", value = ServiceContainer.ORDER_SERVICE, fallbackFactory = OrderFallBackFactory.class, configuration = FeignInterceptor.class)
public interface OrderClient {
    @PostMapping("/update-comment")
    public Result<Void> updateComment(@RequestBody CommentStatusUpdateInput input);

    @PostMapping("/comment-status")
    public Result<Boolean> commentStatus(@RequestBody CommentStatusUpdateInput input);
}
